{% extends 'base.html' %}

{% block body %}
    <div>
        <div class="container">
            <div class="panel panel-default" style="background-color: rgb(241, 238, 233);">
                    <div class="panel-heading">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="/depart/list/">部门管理</a></li>
                            <li class="breadcrumb-item active" aria-current="page">编辑部门：</li>
                        </ol>
                    </div>
                    <div style="display: flex;justify-content: center;">
                        <div >
                            <form method="post">
                                {% csrf_token %}
                                    部门编号：<input style="margin-top: 10px;" type="text" value="{{obj.d_id}}" placeholder="请输入部门编号" name="d_id"><br/>
                                    部门名称：<input style="margin-top: 10px;" type="text" value="{{obj.title}}" placeholder="请输入部门名称" name="title"><br/>
                                    <div style="margin-top: 10px;">
                                        <a style="color: black;" href="/depart/list/"><input type="button" value="取消"></a>
                                        <a style="color: black;" >
                                            <input style="margin-left: 158px;" type="submit" value="保存"><br/>
                                        </a>
                                    </div>
                                    <span style="color: red;">{{ error_msg }}</span>
                            </form>
                        </div>
                    </div>
                </div>
        </div>
    </div>
{% endblock body %}